<?php
declare (strict_types=1);

namespace app\controller\api\v1\expert\home;

use app\controller\api\ApiController;
use app\service\logic\common\maintain\BannerService;
use think\response\Json;

class HomeController extends ApiController
{
    /**
     * @return Json
     */
    public function banner()
    {
        $result = invoke(BannerService::class)
            ->getList([], ['client_type', 'state'], ['client_type' => 2, 'state' => 1], [], null, false);
        return amis($result);
    }
}
